package org.glut.wechat.controller;

import org.glut.wechat.domain.User;
import org.glut.wechat.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用户表 前端控制器
 *
 * @author fy
 * @since 2025-08-26 15:12
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    private IUserService iuserService;
    @GetMapping("/selectAllById/{id}")
    public User selectAllById(@PathVariable Integer id) {
        User user = iuserService.selectById(id);
        return user;
    }
}
